import request from '@/utils/request'

// 查询采购退库单列表 - 分页
export function queryPurMrbList(data) {
  return request({
    url: '/tPurMrb/queryPurMrbList',
    method: 'post',
    data
  })
}
// 查询采购退库单详情
export function queryPurMrbListDetails(params) {
  return request({
    url: '/tPurMrb/queryPurMrbListDetails',
    method: 'get',
    params
  })
}
// 查询下推采购订单信息
export function queryPushDownMrb(data) {
  return request({
    url: '/tPurMrb/queryPushDownMrb',
    method: 'post',
    data
  })
}
// 修改采购退货
export function updateMrb(data) {
  return request({
    url: '/tPurMrb/updateMrb',
    method: 'put',
    data
  })
}
// 采购退货审核
export function purMrbAudit(data) {
  return request({
    url: '/tPurMrb/purMrbAudit',
    method: 'put',
    data
  })
}
// 采购退货反审核
export function purMrbUnAudit(data) {
  return request({
    url: '/tPurMrb/purMrbUnAudit',
    method: 'put',
    data
  })
}
// 采购退货反提交
export function purMrbAuSubmit(data) {
  return request({
    url: '/tPurMrb/purMrbAuSubmit',
    method: 'put',
    data
  })
}
// 采购退货提交
export function purMrbSubmit(data) {
  return request({
    url: '/tPurMrb/purMrbSubmit',
    method: 'put',
    data
  })
}
// 采购退货反禁用
export function purMrbUndisable(data) {
  return request({
    url: '/tPurMrb/purMrbUndisable',
    method: 'put',
    data
  })
}
// 采购退货禁用
export function purMrbdisable(data) {
  return request({
    url: '/tPurMrb/purMrbdisable',
    method: 'put',
    data
  })
}
// 采购退货删除
export function purMrbDelete(data) {
  return request({
    url: '/tPurMrb/purMrbDelete',
    method: 'delete',
    data
  })
}
